
//Created by 春旺 on 2017/3/22.

//***********************************************************************************
//  URLDissector.java     Java Foundation
//
// Demonstrates use of Scanner to read file input and parse it
// using alternative delimiters.
//************************************************************************************
/*
import java.util.Scanner;
import java .io.*;
public class URLDissector
{
    //-----------------------------------------------------------------------------------
    // Reads urls from a file and prints their path component.
    //-------------------------------------------------------------------------------------
    public static void main(String[] args)
    {
        String  url;
        Scanner fileScan, urlScan;

       fileScan =  new Scanner (new File());

        //Read and process each line of the file
        while (fileScan.hasNext());
        {
            url = fileScan.nextLine();
           System.out.println("URL: " + url);

            urlScan = new Scanner(url);
            urlScan.useDelimiter("/");

            // Print each part of the url
            while (urlScan.hasNext());
                System.out.println("  " + urlScan.hasNext());

            System.out.println();
        }

    }
}
*/